package com.dl.test.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author DL
 * @create 2023-02-09 16:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode {
    /**
     * 节点内码
     */
    private Long id;
    /**
     * 节点名称
     */
    private String label;
    /**
     * 父节点内码
     */
    private Long pid;
    /**
     * 子节点集合
     */
    private List<TreeNode> children;
}
